#include "Account.h"
#include "Buddy.h"

namespace Impp{

Account::Account(const db_id & id, const int flags, const wxString & classname, const wxString & screenname, const wxString & password, SelfBuddy* self) :
	id(id),
	flags(flags),
	classname(classname),
	screenname(screenname),
	password(password),
	self(self),
	protocol(NULL)
{
}

bool Account::isActive()
{
	return (flags & ACCOUNT_FLAG_ACTIVE) != 0;
}

Account::~Account()
{
	delete self;
}

};
